package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单聊消息对象 im_user_message
 * 
 * @author ruoyi
 * @date 2024-04-01
 */
public class ImUserMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 发送方ID */
    @Excel(name = "发送方ID")
    private String fromUserId;

    /** 接收方ID */
    @Excel(name = "接收方ID")
    private String toUserId;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String messageType;

    /** 消息 */
    @Excel(name = "消息")
    private String message;

    /** 消息发送时间 */
    @Excel(name = "消息发送时间")
    private Integer messageTime;

    /**
     * 消息唯一标识符
     */
    private String msgKey;


    private Integer IsDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromUserId(String fromUserId) 
    {
        this.fromUserId = fromUserId;
    }

    public String getFromUserId() 
    {
        return fromUserId;
    }
    public void setToUserId(String toUserId) 
    {
        this.toUserId = toUserId;
    }

    public String getToUserId() 
    {
        return toUserId;
    }
    public void setMessageType(String messageType) 
    {
        this.messageType = messageType;
    }

    public String getMessageType() 
    {
        return messageType;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setMessageTime(Integer messageTime)
    {
        this.messageTime = messageTime;
    }

    public Integer getMessageTime()
    {
        return messageTime;
    }

    public String getMsgKey() {
        return msgKey;
    }

    public void setMsgKey(String msgKey) {
        this.msgKey = msgKey;
    }

    public Integer getIsDelete() {
        return IsDelete;
    }

    public void setIsDelete(Integer isDelete) {
        IsDelete = isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromUserId", getFromUserId())
            .append("toUserId", getToUserId())
            .append("messageType", getMessageType())
            .append("message", getMessage())
            .append("messageTime", getMessageTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
